package com.ruoyi.dataprocess.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dataprocess.mapper.FengceschedulePlanMapper;
import com.ruoyi.dataprocess.domain.FengceschedulePlan;
import com.ruoyi.dataprocess.service.IFengceschedulePlanService;

/**
 * 调度方案Service业务层处理
 * 
 * @author chenxin
 * @date 2024-01-29
 */
@Service
public class FengceschedulePlanServiceImpl implements IFengceschedulePlanService 
{
    @Autowired
    private FengceschedulePlanMapper fengceschedulePlanMapper;

    /**
     * 查询调度方案
     * 
     * @param scheduleplanid 调度方案主键
     * @return 调度方案
     */
    @Override
    public FengceschedulePlan selectFengceschedulePlanByScheduleplanid(Long scheduleplanid)
    {
        return fengceschedulePlanMapper.selectFengceschedulePlanByScheduleplanid(scheduleplanid);
    }

    /**
     * 查询调度方案列表
     * 
     * @param fengceschedulePlan 调度方案
     * @return 调度方案
     */
    @Override
    public List<FengceschedulePlan> selectFengceschedulePlanList(FengceschedulePlan fengceschedulePlan)
    {
        return fengceschedulePlanMapper.selectFengceschedulePlanList(fengceschedulePlan);
    }

    /**
     * 新增调度方案
     * 
     * @param fengceschedulePlan 调度方案
     * @return 结果
     */
    @Override
    public int insertFengceschedulePlan(FengceschedulePlan fengceschedulePlan)
    {
        return fengceschedulePlanMapper.insertFengceschedulePlan(fengceschedulePlan);
    }

    /**
     * 修改调度方案
     * 
     * @param fengceschedulePlan 调度方案
     * @return 结果
     */
    @Override
    public int updateFengceschedulePlan(FengceschedulePlan fengceschedulePlan)
    {
        return fengceschedulePlanMapper.updateFengceschedulePlan(fengceschedulePlan);
    }

    /**
     * 批量删除调度方案
     * 
     * @param scheduleplanids 需要删除的调度方案主键
     * @return 结果
     */
    @Override
    public int deleteFengceschedulePlanByScheduleplanids(Long[] scheduleplanids)
    {
        return fengceschedulePlanMapper.deleteFengceschedulePlanByScheduleplanids(scheduleplanids);
    }

    /**
     * 删除调度方案信息
     * 
     * @param scheduleplanid 调度方案主键
     * @return 结果
     */
    @Override
    public int deleteFengceschedulePlanByScheduleplanid(Long scheduleplanid)
    {
        return fengceschedulePlanMapper.deleteFengceschedulePlanByScheduleplanid(scheduleplanid);
    }
}
